home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / unsupprt / guide / src / libguide / makefile < prev    next >
Encoding:
Makefile  |  1993-06-15  |  1.9 KB  |  69 lines

  1. #
  2. # @(#)Makefile    2.5 91/10/15 Copyright 1990 Sun Microsystems
  3. #
  4. # This file is a product of Sun Microsystems, Inc. and is provided for
  5. # unrestricted use provided that this legend is included on all tape
  6. # media and as a part of the software program in whole or part.  Users
  7. # may copy or modify this file without charge, but are not authorized to
  8. # license or distribute it to anyone else except as part of a product
  9. # or program developed by the user.
  10. # THIS FILE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  11. # WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  12. # PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  13. # This file is provided with no support and without any obligation on the
  14. # part of Sun Microsystems, Inc. to assist in its use, correction,
  15. # modification or enhancement.
  16. # SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  17. # INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS FILE
  18. # OR ANY PART THEREOF.
  19. # In no event will Sun Microsystems, Inc. be liable for any lost revenue
  20. # or profits or other special, indirect and consequential damages, even
  21. # if Sun has been advised of the possibility of such damages.
  22. # Sun Microsystems, Inc.
  23. # 2550 Garcia Avenue
  24. # Mountain View, California  94043
  25. #
  26.  
  27. SOURCES = \
  28.     guide.c \
  29.     gio.c \
  30.     gio_path.c \
  31.     guide_actions.c
  32.  
  33. OBJECTS = \
  34.     guide.o \
  35.     gio.o \
  36.     gio_path.o \
  37.     guide_actions.o
  38.  
  39. LIBRARY = libguide.a
  40.  
  41. PROJECTDIR = $(GUIDEHOME)
  42. DESTDIR = $(PROJECTDIR)
  43.  
  44. # Compiler flags.
  45.  
  46. CFLAGS = -I$(PROJECTDIR)/src/libguide -I$(OPENWINHOME)/include
  47.  
  48. # Standard targets.
  49.  
  50. all:     $(LIBRARY)
  51.  
  52. $(LIBRARY): $(OBJECTS)
  53.     rm -f $(LIBRARY); \
  54.     ar cr $(LIBRARY) $(OBJECTS); \
  55.     ranlib $(LIBRARY)
  56.  
  57. install: all
  58.     install -d $(DESTDIR)/lib
  59.     install -m 664 $(LIBRARY) $(DESTDIR)/lib
  60.     (cd $(DESTDIR)/lib ; ranlib -t $(LIBRARY) ; chmod 444 $(LIBRARY))
  61.  
  62. clean:
  63.     rm -f $(LIBRARY) $(OBJECTS) core *~ TAGS *BAK *delta *_stubs.c *.info
  64.